// 绩效榜
let base = config.ip
let baseUrl = `${base}/topnet-assess`
import { get, post } from './http.js'

/************************* 绩效榜 *************************/
// 判断用户是否是领导成员公务员
export const isLeaderMember = p => post(`${baseUrl}/sa-uias-user-status/isLeaderMember`, p)
// 绩效榜--个人绩效(科员)
export const getPersonMerits = p => post(`${baseUrl}/sa-performance/listPersonalPerformance`, p)
// 绩效榜--组织绩效(科员)
export const getOragnMerits = p => post(`${baseUrl}/sa-performance/listOrganPerformance`, p)
// 绩效榜--季度列表
export const getQuarter = p => post(`${baseUrl}/sa-performance/listQuarter`, p)

// 公示榜
export const selectListHonorRollDetailResponse = p =>
  post(`${baseUrl}/sa-honor-roll/selectListHonorRollDetailResponse`, p)
export const selectAllChoose = p => get(`${baseUrl}/sa-honor-roll/selectAllChoose`, p)
// 首页获取公示榜展示信息
export const getHonorRollTip = p => post(`${baseUrl}/sa-honor-roll/getHonorRollTip`, p)

// 获取所有的科室
export const selectAllDepartment = p => post(`${baseUrl}/sa-bonus-points/selectAllDepartment`, p)

// 县干部获取公示榜数据
export const dryGetHonorRollData = p => post(`${baseUrl}/sa-honor-roll/dryGetHonorRollDetailResponse`, p)
// 组织部获取公示榜数据
export const orgGetHonorRollData = p => post(`${baseUrl}/sa-honor-roll/orgGetHonorRollDetailResponse`, p)
// 获取公示榜机构列表
export const getHonorOrgList = p => post(`${baseUrl}/sa-honor-roll/getHonorOrgList`, p)
